<template>
  <div>
    <div>
      <div>
        <el-input v-model="one.orderCode" placeholder="订单号"></el-input>
        <div>
          <span>{{one.orderData}}</span>
        </div>
      </div>
      <div>
        <el-button type="primary" round @click="getOrderByCode">查询订单信息</el-button>
      </div>
      <div>
        <el-button type="primary" round @click="invocationInfoProxy">invocationInfoProxy</el-button>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'order',
    data() {
      return {
        one: {
          orderCode: 'DD612871657823928321',
          orderData: ''
        },
      };
    },

    methods: {
      init() {
      },
      getOrderByCode() {
        this.axios.get("/b2c-order/order/getOrderByCode/" + this.one.orderCode).then(res => {
          console.log(res.data)
          this.one.orderData = res.data;
        }).catch(error => {

        });
      },
      invocationInfoProxy(){
        this.axios.get("/b2c-order/invocationInfoProxy").then(res => {
          console.log(res)
        }).catch(error => {

        });
      }
    }
  };
</script>
